package com.jiyinit.web.core.video.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.jiyinit.core.framework.base.paging.PagingResult;
import com.jiyinit.web.core.video.dao.TabCoreVideoUserDao;
import com.jiyinit.web.core.video.dto.VideoUserRequest;
import com.jiyinit.web.core.video.entity.TabCoreVideoUserEntity;

@Service("core.videoUserServiceImpl")
public class VideoUserServiceImpl {
	
	@Resource(name = "core.tabCoreVideoUserDao")
	private TabCoreVideoUserDao tabCoreVideoUserDao;
	
	
	/**
     * 多条件分页查询
     * @param request
     * @return
     */
	public PagingResult<TabCoreVideoUserEntity> findForPage(VideoUserRequest request){
        return tabCoreVideoUserDao.findForPage(request);
    }
	
	/**
	 * id查询
     * @param id
     * @return
     */
	public TabCoreVideoUserEntity findOne(Integer id){
		return tabCoreVideoUserDao.findOne(id);
	}
	
	/**
	 * 添加
     * @param entity
     * @return
     */
	public int add(TabCoreVideoUserEntity entity){
		return tabCoreVideoUserDao.add(entity);
	}
	
	/**
	 * 修改
     * @param entity
     * @return
     */
	public int update(TabCoreVideoUserEntity entity){
		return tabCoreVideoUserDao.update(entity);
	}
	
	/**
	 * 删除
     * @param id
     * @return
     */
	public int delete(Integer id){
		return tabCoreVideoUserDao.delete(id);
	}
	
}
